//Put a Console.Read() as the last line in your program. //That will prevent it from closing until you press a key Console.Read();